package com.bnzj.cloud.auth.contans;

/**
 * @author Barry
 * @createDate 2020/3/6
 * @description
 */
/**
 * @ClassName ErrorEnum
 * @Description 异常定义
 * @Author
 * @Date 2020/2/18
 * @Version V1.0
 **/
public enum LoginErrorEnum {
    PARAMETER_CANNOT_BE_EMPTY(1011, "参数有误！！"),
    TOKEN_VERIFICATION_ERROR(1012, "修改密码token验证错误!"),
    MAIL_FAILED(1013, "邮件发送失败！"),
    RECORD_NOT_EXIST(1010, "资源不存在！！");
    private int code;
    private String message;

    private LoginErrorEnum(int code, String msg) {
        this.code = code;
        this.message = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
